package com.net.lnk.rpc.http.provider.hello;

import org.springframework.stereotype.Component;

import com.net.lnk.rpc.http.hello.IHello;
import com.net.lnk.rpc.http.hello.dto.HelloDTO;

@Component("iHello")
public class HelloImpl implements IHello {

	public String hello() {
		return "Hello, World!";
	}

	public String hello(String message) {
		return message;
	}

	public String hello(HelloDTO helloDTO) {
		return helloDTO.getMessage();
	}

	public HelloDTO helloWorld() {
		return new HelloDTO("Hello, World!");
	}

}
